<!doctype html>
<html>
<head>
    {% load static %}
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>张勋作业</title>
  <meta name="keywords" content="responsive, portfolio, twitter bootstrap, free template, fluid layout, templatemo" />
  <meta name="description" content="Responsive Theme, Portfolio, free template using Bootstrap framework." />
  <link href={% static "css/bootstrap.min.css" %} rel="stylesheet" type="text/css">
  <link href="templatemo_style_fix_menu.css" rel="stylesheet" type="text/css">
  <link href={% static "css/bootstrap-responsive.min.css" %} rel="stylesheet" type="text/css">
  <link href="http://netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet" type="text/css">
  <link href="templatemo_style.css" rel="stylesheet" type="text/css">
  <!-- HTML 5 shim for IE backwards compatibility -->
  <!-- [if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js">
  </script>
  <![endif]-->
</head>
<body>
  <header>
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
           <a class="brand" href={% url "index" %} target="_parent">张勋作业</a>
          <nav class="nav-collapse collapse">
            <ul class="nav pull-right">
              <li><a href={% url "index" %}>主页</a></li>
              <li><a href={% url "about" %}>关于</a></li>
              <li class="active"><a href={% url "showall" %}>展示</a></li>

              <li ><a href={% url "scontact" %}>联系我们</a></li>
              {% if request.user.is_authenticated %}
                     <li><a href="">{{ request.user.username }}</a></li>
                            <li><a href={% url "mylogout" %}>退出 </a></li>
                    {% else %}
                     <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">登录 <span class="caret"></span></a>
                        <form action={% url "login" %} method="post" class="dropdown-menu">
                            {% csrf_token %}
                            {{ mlogin }}
                          <input type="submit" value="登录">
                        </form>
                     </li>
                     <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">注册 <span class="caret"></span></a>
                        <form action={% url "logup" %} method="post" class="dropdown-menu">
                            {% csrf_token %}
                            {{ msignup }}
                          <input type="submit" value="注册">
                        </form>
              </li>
                    {% endif %}
            </ul>
          </nav>
        </div>
      </div>
    </div>
  </header>
  <section class="container" id="page_content">
    <div class="row">
      <div class="span9">
        <h3>分类</h3>
        <p class="lead muted"> 展示分类图片的页面</p>

        <ul class="thumbnails">
    {% for i in kind %}
          <li class="span4">
            <a href={% url "blog" i.pk %}  class="thumbnail" data-toggle="modal"><img src={{ MEDIA_URL }}{{ i.images }} ></a>
          </li>

            {% endfor %}
        </ul>
{#          <li class="span4">#}
{#            <a href="#myModal" class="thumbnail" data-toggle="modal"><img src={% static "images/flashmo_fluidity_02.jpg" %} alt="Model 2"></a>#}
{#          </li>#}
{#          <li class="span4">#}
{#           <a href="#myModal" class="thumbnail" data-toggle="modal"><img src={% static "images/flashmo_fluidity_03.jpg" %} alt=" Model 3"></a>#}
{#         </li>                                    #}
{##}
{#         <li class="span4">#}
{#          <a href="#myModal" class="thumbnail" data-toggle="modal"><img src={% static "images/flashmo_fluidity_04.jpg" %} alt="Model 4"></a>#}
{#        </li>#}
{#        <li class="span4">#}
{#          <a href="#myModal" class="thumbnail" data-toggle="modal"><img src={% static "images/flashmo_fluidity_05.jpg" %} alt="Model 5"></a>#}
{#        </li>#}
{#        <li class="span4">#}
{#         <a href="#myModal" class="thumbnail" data-toggle="modal"><img src={% static "images/flashmo_fluidity_06.jpg" %} alt="Model 6"></a>#}
{#       </li>               #}



   </div>
    <br><br><br><br>
    <aside class="span3">
      <nav class="well sidebar-nav">
        <ul class="nav nav-list">
            <li class="nav-header"><a href={% url "kind1" %}>分类1</a></li>

          <li class="nav-header"><a href={% url "kind2" %}>分类2</a></li>

          <li class="nav-header"><a href={% url "kind3" %}>分类3</a></li>

        </ul>
      </nav>
  </aside>

 </div>

</section>

<footer>
    <div class="container">
        <div id="latest" class="row">

            <section class="span4 rp_box_wrapper">
                <h4> 联系我们 <i class="icon-envelope icon-white"></i></h4>

                <address>
                    <strong>地址</strong><br>
                    天府软件园B区5栋,<br>
                    成都高新区天华一路<br>

                    <abbr title="Phone">Phone:</abbr> <a href="tel:+86 182 0285 2911" title="give us a call">+86 182
                    0285 2911</a><br>
                    <abbr title="Email">Email:</abbr> <a href="15928646660@163.com">15928646660@163.com</a>
                </address>

            </section>

        </div>
        <div class="credit">
            <p id="templatemo_cr_bar">
                网页素材来自 | <a href="http://www.cssmoban.com/">模板之家</a>
            </p>
        </div>
    </div>
</footer>



<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src={% static "js/bootstrap.min.js" %}></script>
</body>
</html>